package a.f.g;

import a.c.d;
import a.c.q;
import a.c.t;
import a.d.w;
import a.f.g.a.*;
import a.f.p;
import a.f.rc;

public class i
  implements rc
{
  private final a.f.g.a.e e = new a.f.g.a.e(false);
  private ab f = new ab();
  private boolean g;
  private j h = j.a;
  private a.f.o i;
  private tb j;
  private i.b_ k;
  private i.a_ l;
  public static boolean m;
  
  public i()
  {
    this.e.a(this.f);
    this.e.a(new a.f.g.a.o());
    a();
  }
  
  public void a()
  {
    this.e.q();
  }
  
  public boolean b()
  {
    return this.g;
  }
  
  public void a(boolean paramBoolean)
  {
    this.g = paramBoolean;
  }
  
  public boolean canLayout(a.f.o paramo)
  {
    return this.e.canLayout(paramo);
  }
  
  public void doLayout(a.f.o paramo)
  {
    a(paramo);
    try
    {
      this.e.doLayout(paramo);
    }
    finally
    {
      c(paramo);
    }
  }
  
  private void a(a.f.o paramo)
  {
    boolean bool = j.c;
    this.i = paramo;
    if (!bool)
    {
      this.j = null;
      if ((paramo instanceof p))
      {
        p localp = (p)paramo;
        t localt = localp.Q();
        if (!bool)
        {
          if (this.g)
          {
            if (bool) {
              break label114;
            }
            if ((localt instanceof q))
            {
              this.j = new tb(this.e, localp);
              ((q)localt).a(this.j);
            }
          }
          this.e.a(new gc(this.e));
          if (bool) {
            return;
          }
        }
        label114:
        if (j.b == 0) {
          break label131;
        }
      }
    }
    this.e.a(new fc());
    label131:
    this.h.a(this.e);
    this.h.a(this.e, paramo);
  }
  
  private void c(a.f.o paramo)
  {
    this.h.c(this.e, paramo);
    if (!j.c) {
      if (this.j != null)
      {
        ((q)((p)paramo).Q()).b(this.j);
        this.j = null;
      }
    }
    this.i = null;
  }
  
  public Thread d(a.f.o paramo)
  {
    this.e.k(true);
    Thread localThread = new Thread(new Runnable()
    {
      private final a.f.o val$graph;
      
      public void run()
      {
        i.this.doLayout(this.val$graph);
      }
    });
    localThread.setDaemon(true);
    localThread.start();
    return localThread;
  }
  
  public c_ e(a.f.o paramo)
  {
    c(this.i);
    a(paramo);
    return this.e.j(paramo);
  }
  
  public void c()
  {
    boolean bool = j.c;
    if ((bool) || (this.e.P()))
    {
      if (bool) {
        break label31;
      }
      if (this.i != null) {}
    }
    else
    {
      return;
    }
    label31:
    if (!bool) {
      if (this.k == null) {
        this.k = new i.b_(this.e, this.i);
      }
    }
    this.k.a();
  }
  
  public double a(double paramDouble1, double paramDouble2)
  {
    boolean bool = j.c;
    if ((bool) || (this.e.P()))
    {
      if (bool) {
        break label35;
      }
      if (this.i != null) {}
    }
    else
    {
      return 0.0D;
    }
    label35:
    if (!bool) {
      if (this.l == null) {
        this.l = new i.a_(this.e, this.i);
      }
    }
    return this.l.a(paramDouble1, paramDouble2);
  }
  
  public void d()
  {
    this.e.Y();
  }
  
  public long e()
  {
    return this.e.ib();
  }
  
  public void a(Runnable paramRunnable)
  {
    this.e.bb().a(paramRunnable);
  }
  
  public void f()
  {
    this.e.db();
  }
  
  public boolean g()
  {
    return this.e.gb();
  }
  
  public boolean h()
  {
    return this.e.hb();
  }
  
  public boolean i()
  {
    return this.e.P();
  }
  
  public double j()
  {
    return this.e.fb();
  }
  
  public void a(double paramDouble)
  {
    this.e.c(paramDouble);
  }
  
  public void b(double paramDouble)
  {
    this.e.a(paramDouble);
  }
  
  public void c(double paramDouble)
  {
    this.e.b(paramDouble);
  }
  
  public void a(d paramd, double paramDouble)
  {
    this.e.bb().a(paramd, paramDouble);
  }
  
  public void a(a.c.e parame, double paramDouble)
  {
    this.e.bb().b(parame, paramDouble);
  }
  
  public void a(a.c.e parame, double paramDouble1, double paramDouble2)
  {
    this.e.bb().a(parame, paramDouble1, paramDouble2);
  }
  
  public void b(a.c.e parame, double paramDouble)
  {
    this.e.bb().f(parame, paramDouble);
  }
  
  public void c(a.c.e parame, double paramDouble)
  {
    this.e.bb().a(parame, paramDouble);
  }
  
  public double a(a.c.e parame)
  {
    cb localcb = this.e.a(parame);
    if (!j.c) {
      if (localcb == null) {
        return 0.0D;
      }
    }
    return localcb.g();
  }
  
  public void d(a.c.e parame, double paramDouble)
  {
    this.e.bb().c(parame, paramDouble);
  }
  
  public void e(a.c.e parame, double paramDouble)
  {
    this.e.bb().d(parame, paramDouble);
  }
  
  public w b(a.c.e parame)
  {
    return this.e.a(parame);
  }
  
  public double c(a.c.e parame)
  {
    return this.e.a(parame).a();
  }
  
  public double d(a.c.e parame)
  {
    return this.e.a(parame).b();
  }
  
  public void a(long paramLong)
  {
    this.f.a(paramLong);
  }
  
  public void d(double paramDouble)
  {
    this.f.b(paramDouble);
  }
  
  public long k()
  {
    return this.f.e();
  }
  
  public double l()
  {
    return this.f.b();
  }
  
  public void m()
  {
    boolean bool = j.c;
    if ((bool) || (i()))
    {
      if (bool) {
        break label35;
      }
      if (this.i != null) {}
    }
    else
    {
      return;
    }
    if (!bool) {
      label35:
      if (!(this.i instanceof p)) {
        throw new IllegalStateException("The given graph is not an instance of CopiedGraphLayout");
      }
    }
    this.e.bb().a(new Runnable()
    {
      public void run()
      {
        ((p)i.this.i).K();
      }
    });
  }
  
  public void a(j paramj)
  {
    this.h = paramj;
  }
  
  public j n()
  {
    return this.h;
  }
  
  public void o()
  {
    this.e.eb();
  }
  
  public static abstract interface c_
  {
    public abstract void a(long paramLong);
    
    public abstract void a();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.i

 * JD-Core Version:    0.7.0.1

 */